import request from '@/utils/request'

// 查询维修关键词列表
export function listRepairKeywords(query) {
  return request({
    url: '/system/repairKeywords/list',
    method: 'get',
    params: query
  })
}

// 查询维修关键词详细
export function getRepairKeywords(id) {
  return request({
    url: '/system/repairKeywords/' + id,
    method: 'get'
  })
}

// 新增维修关键词
export function addRepairKeywords(data) {
  return request({
    url: '/system/repairKeywords',
    method: 'post',
    data: data
  })
}

// 修改维修关键词
export function updateRepairKeywords(data) {
  return request({
    url: '/system/repairKeywords',
    method: 'put',
    data: data
  })
}

// 删除维修关键词
export function delRepairKeywords(id) {
  return request({
    url: '/system/repairKeywords/' + id,
    method: 'delete'
  })
}

export function querySecondProject(id) {
  return request({
    url: '/system/repairProject/querySecondProject?id=' + id,
    method: 'get'
  })
}
